<template>
  <m-page>
    <!-- 借款人信息页 -->
    <m-header title="待签约">
      <div class="sign_up">
        <div class="sign-list">
          <span class="list-txt1">借款人姓名</span>
          <span class="list-txt2">张虎</span>
        </div>
        <div class="sign-list">
          <span class="list-txt1">身份证号</span>
          <span class="list-txt2">456778998988988898</span>
        </div>
        <div class="sign-list">
          <span class="list-txt1">贷款金额(元)</span>
          <span class="list-txt2">500,000.00</span>
        </div>
        <div class="sign-list">
          <span class="list-txt1">期限</span>
          <span class="list-txt2">36月</span>
        </div>
        <div class="sign-list">
          <span class="list-txt1">年利率</span>
          <span class="list-txt2">11%</span>
        </div>
        <div class="sign-list">
          <span class="list-txt1">担保方式</span>
          <span class="list-txt2">信用</span>
        </div>
        <div class="sign-list">
          <span class="list-txt1">客户经理姓名</span>
          <span class="list-txt2">陈慌</span>
        </div>
        <div class="sign-list1">
          <ynet-button type="primary" @onClick="handleSign">前往签约</ynet-button>
        </div>
      </div>
    </m-header>
  </m-page>
</template>

<script>
import ynetButton from "@components/button/index";
export default {
  components: {
    ynetButton
  },
  data() {
    return {
      // 姓名
      name: '',
      // 身份证号
      ID: '',
      // 贷款金额
      money: '',
      // 期限
      time: '',
      // 年利率
      rate: '',
      // 担保方式
      guarantee: '',
      // 客户经理名字
      manager: ''
    }
  },
  methods: {
    handleSign() {
      if (this.name === '') {
        app.api.showToast('请输入借款人姓名')
        return
      } else if (this.ID === '') {
        app.api.showToast('请输入身份证号')
        return
      } else if (this.money === '') {
        app.api.showToast('请输入贷款金额')
        return
      } else if (this.time === '') {
        app.api.showToast('请输入期限')
        return
      } else if (this.rate === '') {
        app.api.showToast('请输入年利率')
        return
      } else if (this.guarantee === '') {
        app.api.showToast('请输入担保方式')
        return
      } else if (this.manager === '') {
        app.api.showToast('请输入客户经理姓名')
        return
      }
      // 进入贷款发放账户页界面
      let params = {
        // 跳转参数
      };
      app.api.pushWindow(
        "long_xiang_loans/sign_loan_account.html",
        params
      )
    }
  },
  created() {},
  mounted() {},
  watch: {},
  computed: {}
};
</script>

<style lang="scss" scoped>
@import "./index.scss";
</style>

